﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Threading;
using Microsoft.AspNet.SignalR.Client;

namespace WcfBusinessLogic.Model
{
    public class ServerTick
    {
        static int Tick = 0;
        public ServerTick()
        {

            Thread myTime = new Thread(serverTime);
            myTime.Start();
        }
        public void serverTime()
        {
            while (true)
            {
                Tick += 1;
                Thread.Sleep(6000);
                Model.HubCommunication.broadcast("Server", "Ticks - " + Tick, "main");
            }
        }
    }
}